#!/bin/bash 

TOP_PATH="/home/work/liuyang31/project/test/Server/output"

cd $TOP_PATH
source ${TOP_PATH}/conf/control.conf || exit -1
source ${TOP_PATH}/bin/control.inc  || exit ${AOS_ERR}
source ${TOP_PATH}/bin/control.func || exit ${AOS_ERR}

INTERFACE=$1
shift

case "$INTERFACE" in
    start|stop|restart|healthcheck)
        echo -e "Running:  [${PROC_NAME}] ${INTERFACE}" 
        ${INTERFACE}
        RET=$?
        echo -e " Result:  ${RET_ERR_MSG}"
        exit ${RET}
        ;;
    *)

echo "Error:  You just can use [start|stop|restart|healthcheck] as param."
esac
